import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询类别列表
export function getDataList(query) {
    return request({
        url: '/check/category/manage/list',
        method: 'get',
        params: query
    })
}

// 添加类别
export function addData(data) {
    return request({
        url: '/check/category/add',
        method: 'post',
        data
    })
}

// 编辑类别
export function upData(data) {
    return request({
        url: '/check/category/update',
        method: 'post',
        data
    })
}

// 删除类别
export function deleteData(data) {
    return request({
        url: '/check/category/delete',
        method: 'post',
        data
    })
}

// 禁用类别
export function upStatus(data) {
    return request({
        url: '/check/category/forbidden',
        method: 'post',
        data
    })
}